//
//  UserInfoObj.swift
//  koolcar
//
//  Created by xiantian on 2023/9/21.
//

import UIKit
import RxSwift
import RxCocoa

///登录 注册 时用户model
struct UserInfoObj {
    var name: String = ""
    var gender: String = ""
    var firstName: String = ""
    var lastName: String = ""
    var email: String = ""
    var birthday: String = ""
    var password: String = ""
    var password1: String = ""
    var couponCode: String = ""
    var phone: String = ""
    
    var captchaId: String = ""
    var captchaCode: String = ""
    
    //---校验说明
    var familyNameTip = BehaviorRelay<String>(value: "")
    var lastNameTip = BehaviorRelay<String>(value: "")
    var emailTip = BehaviorRelay<String>(value: "")
    var birthdayTip = BehaviorRelay<String>(value: "")
    var passwordTip = BehaviorRelay<String>(value: "")
    var password1Tip = BehaviorRelay<String>(value: "")
    var couponCodeTip = BehaviorRelay<String>(value: "")
    //---校验说明
    init(){}
    
    public mutating func removeAllTip(){
        self.familyNameTip = BehaviorRelay<String>(value: "")
        self.lastNameTip = BehaviorRelay<String>(value: "")
        self.emailTip = BehaviorRelay<String>(value: "")
        self.birthdayTip = BehaviorRelay<String>(value: "")
        self.passwordTip = BehaviorRelay<String>(value: "")
        self.password1Tip = BehaviorRelay<String>(value: "")
        self.couponCodeTip = BehaviorRelay<String>(value: "")
    }
}
